<include file="Public/header"/>

<link rel="stylesheet" href="/Public/admin/adminlte/bootstrap/css/bootstrap-datetimepicker.min.css">
<include file="Public/menu"/>
<!--<script src="__PUBLIC__/js/bootstrap-datepicker.js"></script>-->
<!-- 内容页 -->
<div class="content-wrapper">
    <!-- 面包屑 -->
    <section class="content-header">
        <h1>
            {$title}
            <small>{$title_two}</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 分销管理</a></li>
            <li class="active">分销人员列表</li>
        </ol>
    </section>
    <!-- 内容 -->
    <section class="content">

        <div class="tab-content">
            <div class="tab-pane active" id="tab_0">
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title"></h3>
                        <div class="form-inline pull-right">
                            <form action="{:U('Distribution/memberList')}" method="get" pjax-container="">
                                <fieldset>


                                    <select class="form-control" name="select" style="height: 30px; font-size: 12px;">
                                        <option value="nickname" <if condition="$select eq 'nickname' "> selected = "selected"</if>>微信昵称</option>
                                        <option value="mobile" <if condition="$select eq 'mobile' "> selected = "selected"</if>>手机号</option>
                                    </select>
                                    <div class="input-group input-group-sm">
                                        <div class="input-group input-group-sm">
                                            <input type="text" class="form-control" placeholder="" name="value" value="{$value}">
                                        </div>
                                    </div>

                                    <div class="input-group input-group-sm">
                                        <div class="input-group-btn">
                                            <button type="submit" class="btn btn-primary"><i class="fa fa-search"></i>
                                            </button>
                                        </div>
                                    </div>
                                </fieldset>
                            </form>
                        </div>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body table-responsive no-padding">
                        <table class="table table-hover">
                            <tbody>
                            <tr>
                                <th>ID
                                </th>
                                <th>昵称</th>
                                <th>姓名</th>
                                <th>手机号</th>
                                <th>邀请朋友数</th>
                                <th>累计奖金</th>
                                <th>当前余额</th>
                                <th>加入时间</th>
                                <th>上级</th>
                                <th>操作</th>
                            </tr>
                            <foreach name="msg" item="v" >
                                <tr>
                                    <td>{$v.id}</td>
                                    <td>{$v.nickname}</td>
                                    <td>{$v.name}</td>
                                    <td>{$v.mobile}</td>
                                    <td>{$v.friend_num}</td>
                                    <td>{$v.count_bonus}</td>
                                    <td>{$v.current_bonus}</td>
                                    <td>{$v.create_time}</td>
                                    <td>{:get_member_msg($v['p_member_id'])}</td>
                                    <td>
                                        <if condition="$v.pic_src neq ''">
                                        <a href="{$v.pic_src}" target="_blank">查看海报</a> |</if>
                                        <a href="/Admin/Distribution/bonusRecord/member_id/{$v.member_id}/type/0">奖金记录</a>
                                    </td>
                                </tr>
                            </foreach>

                            </tbody>
                        </table>
                    </div>
                    <div class="box-footer clearfix">
                        <!--<input type="checkbox" class="grid-select-all">&nbsp;&nbsp;&nbsp;
                        <a class="btn btn-sm btn-danger batch-delete">Batch delete</a>-->
                        {$show}
                    </div>
                    <!-- /.box-body -->
                </div>
            </div>

        </div>
    </section>
</div>
<!-- 底部 -->
<include file="Public/common_footer"/>

